package com.apartment.common.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * des. 打印sql
 * @author       :  RazaJin
 * @createDate    :  2020/9/8 0008 上午 10:38
 */
public class StdoutLogger extends com.p6spy.engine.spy.appender.StdoutLogger {
    private static final Logger log = LoggerFactory.getLogger(StdoutLogger.class);

    public StdoutLogger() {
    }
    @Override
    public void logText(String text) {
       log.debug("SQL \n"+text);
    }
}